package com.weic.vo;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class StudentTest3 {

    @Test
    public void testStudent3(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring3.xml");
        Student student = context.getBean("student", Student.class);
        System.out.println("4.getBean");
        System.out.println(student);
        context.close();
    }

}
